package com.training.service.chenhao;

import java.util.List;

import com.training.pojo.chengshu.MotorRoom;
import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.ULog;
import com.training.pojo.chengshu.UUser;
import com.training.pojo.chengshu.UserRole;

public interface EmpService {
  public List<UUser> emplist(int start,int max);
  
  public  int empsize();
  
  public List<UUser> serachemp(Integer utype,Integer deptid,String uname,Integer sex);
  
  public List<UDept> deptname();
  
  public void addemp(UUser emp,String udept);
  
  public UUser empdetail(String uid);
  
  public List<MotorRoom> chaMotor(String uid);//一下5个查询表是为修改和删除人员做准备

  public List<UDept> chaDept(String uid);

  public List<ULog> chaLog(String uid);
  
  public int findDeptidByUserid(String userid);//下面两个是为了在修改人员时确定在部门里面是否有相应的userid
  
  public int findUseridBydeptid(int deptid);

  public List<UserRole> chaUserrole(String uid);
  
  public void deleteemp(String uid);
  
  public void changeemp(final int id,final UUser emp,final String deptid);
  
}
